import request from "@/utils/request";
export function fetchList(params) {
  return request({
    url: "/ums/MemberMeal/list",
    method: "get",
    params: params
  });
}

export function createMemberMeal(data) {
  return request({
    url: "/ums/MemberMeal/create",
    method: "post",
    data: data
  });
}

export function deleteMemberMeal(id) {
  return request({
    url: "/ums/MemberMeal/delete/" + id,
    method: "get"
  });
}

export function getMemberMeal(id) {
  return request({
    url: "/ums/MemberMeal/" + id,
    method: "get"
  });
}

export function updateMemberMeal(id, data) {
  return request({
    url: "/ums/MemberMeal/update/" + id,
    method: "post",
    data: data
  });
}
